package com.kuang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    @RequestMapping({"/", "toIndex"})
    public String toIndex() {
        return "/index";
    }

    @RequestMapping("toDashboard")
    public String toDashboard() {
        return "/dashboard";
    }

//    @GetMapping("/selectDepartment")
//    public String selectDepartment(Model model) {
//        Collection<Department> departmens = departmentDao.getDepartmens();
//        model.addAttribute("departments", departmens);
//        return "/department/list";
//    }

}
